Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: clean queen #5

Merged
merged 4 commits into from
Oct 16, 2024
Merged

chore: clean queen #5

merged 4 commits into from
Oct 16, 2024

Conversation

guillaumemichel
Copy link
Contributor

Follow up to #2

Comment on lines +82 to +83
mmc: mmc,
uclient: getUdgerClient(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kasteph are mmc and uclient used anywhere at the moment?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not at the moment, these are for the multiaddress resolutions.

// Keep this protocols slice empty for now,
// because we don't need it yet and I don't know how to get it
// protocols := make([]string, 0)
// protocols, _ := q.peerstore.GetProtocols(log.Requester)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kasteph this is the string to get the list of protocols supported by the remote peer. However there is currently no field in the models.RequestsDenormalized struct to add the protocols. Can I leave that to you?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok!

@@ -277,6 +257,28 @@ func (q *Queen) consumeAntsLogs(ctx context.Context) {
}
}

func (q *Queen) normalizeRequests(ctx context.Context) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: I moved requests normalization to the queen. Let me know if this seems wrong

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good, much cleaner!

@@ -277,6 +257,28 @@ func (q *Queen) consumeAntsLogs(ctx context.Context) {
}
}

func (q *Queen) normalizeRequests(ctx context.Context) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks good, much cleaner!

@guillaumemichel guillaumemichel merged commit a74c824 into main Oct 16, 2024
2 checks passed
@guillaumemichel guillaumemichel deleted the clean-queen branch October 16, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants